package com.wdh.kjs.activity;

import android.os.Bundle;
import android.webkit.WebChromeClient;
import android.webkit.WebView;

import com.wdh.kjs.R;
import com.wdh.kjs.http.Httpurl;

/**
 * Created by feifei on 2016/9/18.
 */
public class TupianActivity extends BaseTopActivity {
    private WebView webView;
    private String itemInfoMaterialPath;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_tupian);
        initTopBar("图片");
        webView = (WebView) findViewById(R.id.wv_tupian);
        webView.getSettings().setJavaScriptEnabled(true);
        webView.setWebChromeClient(new WebChromeClient());
        itemInfoMaterialPath = getIntent().getStringExtra("tupian");
        String url=Httpurl.BadseHOST + itemInfoMaterialPath;
        webView.loadUrl(url);
    }
}
